import request from '@/utils/http';
/** 服务市场订单列表 */
export const serviceMarketList = (params: any): Promise<App.RequestTableResult> => {
  return request.get(`orders/serviceMarket`, { params });
};
/** 支付宝订单列表 */
export const alipayOrderList = (params: any): Promise<App.RequestTableResult> => {
  return request.get(`orders/alipayOrders`, { params });
};
/** AI订单列表 */
export const aiOrderList = (params: any): Promise<App.RequestTableResult> => {
  return request.get(`dlyadminAiOrders/orders`, { params });
};

/** 可以结算的金额 */
export const canSettleAmount = (): Promise<any> => {
  return request.get(`orders/proxyMayMarket`);
};
/** 提交提现申请 */
export const submitWithdraw = (params: any): Promise<any> => {
  return request.post(`orders/settlementOrder`, params);
};

/** 编辑提现申请 */
export const puttlementOrder = (params: any, id: string): Promise<any> => {
  return request.put(`orders/puttlementOrder/${id}`, params);
};

/** 获取提现列表 */
export const gettlementOrder = (params: any): Promise<any> => {
  return request.get(`orders/gettlementOrder`, { params });
};

// 获取申请提现的列表
export const getuserPuterList = (params: any): Promise<any> => {
  return request.get(`orders/getuserPuterList`, { params });
};
// 修改用户打款的状态
export const setMaPayStatus = (params: any, id: string): Promise<any> => {
  return request.put(`orders/setMaPayStatus/${id}`, params);
};
